import xcRequest from '@/service'
import { loginResponseType, userListType } from '@/service/mian/system/type'

export function getUserListRequest(url: string, config: userListType) {
  return xcRequest.post<loginResponseType>({
    url,
    data: {
      ...config
    }
  })
}
export function deleteUserListRequest(url: string) {
  return xcRequest.delete<loginResponseType>({
    url
  })
}

export function createUserRequest(url: string, info: any) {
  return xcRequest.post<loginResponseType>({
    url,
    data: {
      ...info
    }
  })
}
export function editUserRequest(url: string, info: any) {
  return xcRequest.patch<loginResponseType>({
    url,
    data: {
      ...info
    }
  })
}
